package com.Ajava1801D.并发包.test0001;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/7  13:58
 * 描述:
 */
public class MyRunable001 implements Runnable {

    private String ttt;

    public MyRunable001(String ttt) {
        this.ttt = ttt;
    }

    @Override
    public void run() {

        synchronized (ttt){
            try {
                ttt.wait();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("==============0001");

    }
}
